home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / TransSkel 3.11.sit / TransSkel v 3.11 / Convenience / Positioning Stuff / SkelPosWindow.c < prev    next >
MacBinary  |  1994-02-20  |  2.5 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sun Feb 20 18:32:25 1994, modified Sun Feb 20 18:32:25 1994, creator Think C, type ASCII, 1627 bytes "SkelPosWindow.c" , at 0x6db 702 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 53 6b 65 6c 50 6f | 73 57 69 6e 64 6f 77 2e |..SkelPo|sWindow.|
|00000010| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 06 5b 00 | 00 02 be a9 8d a3 89 a9 |......[.|........|
|00000060| 8d a3 89 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 c3 28 00 00 |........|.....(..|
|00000080| 2f 2a 0d 20 2a 20 50 6f | 73 69 74 69 6f 6e 20 61 |/*. * Po|sition a|
|00000090| 20 77 69 6e 64 6f 77 20 | 61 63 63 6f 72 64 69 6e | window |accordin|
|000000a0| 67 20 74 6f 20 74 68 65 | 20 67 69 76 65 6e 20 70 |g to the| given p|
|000000b0| 6f 73 69 74 69 6f 6e 20 | 74 79 70 65 2c 20 75 73 |osition |type, us|
|000000c0| 69 6e 67 20 74 68 65 0d | 20 2a 20 67 69 76 65 6e |ing the.| * given|
|000000d0| 20 70 6f 73 69 74 69 6f | 6e 69 6e 67 20 72 61 74 | positio|ning rat|
|000000e0| 69 6f 73 2e 0d 20 2a 0d | 20 2a 20 50 6f 73 69 74 |ios.. *.| * Posit|
|000000f0| 69 6f 6e 20 74 79 70 65 | 73 3a 0d 20 2a 09 73 6b |ion type|s:. *.sk|
|00000100| 65 6c 50 6f 73 69 74 69 | 6f 6e 4e 6f 6e 65 20 2d |elPositi|onNone -|
|00000110| 2d 20 6c 65 61 76 65 20 | 77 69 6e 64 6f 77 20 69 |- leave |window i|
|00000120| 6e 20 63 75 72 72 65 6e | 74 20 70 6f 73 69 74 69 |n curren|t positi|
|00000130| 6f 6e 0d 20 2a 09 73 6b | 65 6c 50 6f 73 69 74 69 |on. *.sk|elPositi|
|00000140| 6f 6e 4f 6e 4d 61 69 6e | 44 65 76 69 63 65 20 2d |onOnMain|Device -|
|00000150| 2d 20 70 6f 73 69 74 69 | 6f 6e 20 6f 6e 20 6d 61 |- positi|on on ma|
|00000160| 69 6e 20 64 65 76 69 63 | 65 0d 20 2a 09 73 6b 65 |in devic|e. *.ske|
|00000170| 6c 50 6f 73 69 74 69 6f | 6e 4f 6e 50 61 72 65 6e |lPositio|nOnParen|
|00000180| 74 57 69 6e 64 6f 77 20 | 2d 2d 20 70 6f 73 69 74 |tWindow |-- posit|
|00000190| 69 6f 6e 20 6f 6e 20 66 | 72 6f 6e 74 6d 6f 73 74 |ion on f|rontmost|
|000001a0| 20 76 69 73 69 62 6c 65 | 20 77 69 6e 64 6f 77 0d | visible| window.|
|000001b0| 20 2a 09 73 6b 65 6c 50 | 6f 73 69 74 69 6f 6e 4f | *.skelP|ositionO|
|000001c0| 6e 50 61 72 65 6e 74 53 | 63 72 65 65 6e 20 2d 2d |nParentS|creen --|
|000001d0| 20 70 6f 73 69 74 69 6f | 6e 20 6f 6e 20 73 63 72 | positio|n on scr|
|000001e0| 65 65 6e 20 6f 66 20 66 | 72 6f 6e 74 6d 6f 73 74 |een of f|rontmost|
|000001f0| 20 76 69 73 69 62 6c 65 | 20 77 69 6e 64 6f 77 0d | visible| window.|
|00000200| 20 2a 0d 20 2a 20 49 66 | 20 74 68 65 72 65 27 73 | *. * If| there's|
|00000210| 20 6e 6f 20 66 72 6f 6e | 74 6d 6f 73 74 20 77 69 | no fron|tmost wi|
|00000220| 6e 64 6f 77 2c 20 70 6f | 73 69 74 69 6f 6e 73 20 |ndow, po|sitions |
|00000230| 74 68 61 74 20 75 73 65 | 20 69 74 20 64 65 66 61 |that use| it defa|
|00000240| 75 6c 74 20 74 6f 0d 20 | 2a 20 73 6b 65 6c 50 6f |ult to. |* skelPo|
|00000250| 73 69 74 69 6f 6e 4f 6e | 4d 61 69 6e 44 65 76 69 |sitionOn|MainDevi|
|00000260| 63 65 2e 0d 20 2a 0d 20 | 2a 20 46 6f 72 20 62 65 |ce.. *. |* For be|
|00000270| 73 74 20 72 65 73 75 6c | 74 73 2c 20 77 69 6e 64 |st resul|ts, wind|
|00000280| 6f 77 20 73 68 6f 75 6c | 64 20 6e 6f 74 20 62 65 |ow shoul|d not be|
|00000290| 20 76 69 73 69 62 6c 65 | 2e 20 20 4f 74 68 65 72 | visible|. Other|
|000002a0| 77 69 73 65 20 79 6f 75 | 27 6c 6c 20 65 6e 64 0d |wise you|'ll end.|
|000002b0| 20 2a 20 75 70 20 6d 6f | 76 69 6e 67 20 69 74 20 | * up mo|ving it |
|000002c0| 77 68 69 6c 65 20 69 74 | 27 73 20 76 69 73 69 62 |while it|'s visib|
|000002d0| 6c 65 2e 0d 20 2a 0d 20 | 2a 20 30 38 20 46 65 62 |le.. *. |* 08 Feb|
|000002e0| 20 39 34 0d 20 2a 20 2d | 20 50 6f 73 69 74 69 6f | 94. * -| Positio|
|000002f0| 6e 20 77 69 6e 64 6f 77 | 20 75 73 69 6e 67 20 73 |n window| using s|
|00000300| 74 72 75 63 74 75 72 65 | 20 72 61 74 68 65 72 20 |tructure| rather |
|00000310| 74 68 61 6e 20 63 6f 6e | 74 65 6e 74 20 72 65 63 |than con|tent rec|
|00000320| 74 61 6e 67 6c 65 2e 0d | 20 2a 2f 0d 0d 23 20 69 |tangle..| */..# i|
|00000330| 6e 63 6c 75 64 65 09 22 | 54 72 61 6e 73 53 6b 65 |nclude."|TransSke|
|00000340| 6c 2e 68 22 0d 0d 0d 70 | 61 73 63 61 6c 20 76 6f |l.h"...p|ascal vo|
|00000350| 69 64 0d 53 6b 65 6c 50 | 6f 73 69 74 69 6f 6e 57 |id.SkelP|ositionW|
|00000360| 69 6e 64 6f 77 20 28 57 | 69 6e 64 6f 77 50 74 72 |indow (W|indowPtr|
|00000370| 20 77 2c 20 73 68 6f 72 | 74 20 70 6f 73 69 74 69 | w, shor|t positi|
|00000380| 6f 6e 54 79 70 65 2c 0d | 09 09 09 09 09 09 09 46 |onType,.|.......F|
|00000390| 69 78 65 64 20 68 52 61 | 74 69 6f 2c 20 46 69 78 |ixed hRa|tio, Fix|
|000003a0| 65 64 20 76 52 61 74 69 | 6f 29 0d 7b 0d 52 65 63 |ed vRati|o).{.Rec|
|000003b0| 74 09 63 6f 6e 74 65 6e | 74 52 65 63 74 2c 20 73 |t.conten|tRect, s|
|000003c0| 74 72 75 63 74 52 65 63 | 74 2c 20 72 65 66 52 65 |tructRec|t, refRe|
|000003d0| 63 74 3b 0d 73 68 6f 72 | 74 09 68 44 69 66 66 2c |ct;.shor|t.hDiff,|
|000003e0| 20 76 44 69 66 66 3b 0d | 0d 09 69 66 20 28 70 6f | vDiff;.|..if (po|
|000003f0| 73 69 74 69 6f 6e 54 79 | 70 65 20 3d 3d 20 73 6b |sitionTy|pe == sk|
|00000400| 65 6c 50 6f 73 69 74 69 | 6f 6e 4e 6f 6e 65 29 09 |elPositi|onNone).|
|00000410| 2f 2a 20 6c 65 61 76 65 | 20 77 69 6e 64 6f 77 20 |/* leave| window |
|00000420| 61 73 20 69 73 20 2a 2f | 0d 09 09 72 65 74 75 72 |as is */|...retur|
|00000430| 6e 3b 0d 0d 09 2f 2a 20 | 67 65 74 20 72 65 63 74 |n;.../* |get rect|
|00000440| 20 74 6f 20 75 73 65 20 | 61 73 20 72 65 66 65 72 | to use |as refer|
|00000450| 65 6e 63 65 20 61 67 61 | 69 6e 73 74 20 77 68 69 |ence aga|inst whi|
|00000460| 63 68 20 74 6f 20 70 6f | 73 69 74 69 6f 6e 20 77 |ch to po|sition w|
|00000470| 69 6e 64 6f 77 20 72 65 | 63 74 20 2a 2f 0d 09 53 |indow re|ct */..S|
|00000480| 6b 65 6c 47 65 74 52 65 | 66 65 72 65 6e 63 65 52 |kelGetRe|ferenceR|
|00000490| 65 63 74 20 28 26 72 65 | 66 52 65 63 74 2c 20 70 |ect (&re|fRect, p|
|000004a0| 6f 73 69 74 69 6f 6e 54 | 79 70 65 29 3b 0d 0d 09 |ositionT|ype);...|
|000004b0| 2f 2a 0d 09 20 2a 20 55 | 73 65 20 73 74 72 75 63 |/*.. * U|se struc|
|000004c0| 74 75 72 65 20 72 65 63 | 74 20 61 73 20 74 68 65 |ture rec|t as the|
|000004d0| 20 72 65 63 74 20 74 6f | 20 62 65 20 70 6f 73 69 | rect to| be posi|
|000004e0| 74 69 6f 6e 65 64 2c 20 | 62 75 74 20 77 68 65 6e |tioned, |but when|
|000004f0| 20 6d 6f 76 69 6e 67 20 | 77 69 6e 64 6f 77 2c 0d | moving |window,.|
|00000500| 09 20 2a 20 6f 66 66 73 | 65 74 20 62 79 20 64 69 |. * offs|et by di|
|00000510| 66 66 65 72 65 6e 63 65 | 20 62 65 74 77 65 65 6e |fference| between|
|00000520| 20 75 70 70 65 72 20 6c | 65 66 74 20 6f 66 20 73 | upper l|eft of s|
|00000530| 74 72 75 63 74 75 72 65 | 20 61 6e 64 20 63 6f 6e |tructure| and con|
|00000540| 74 65 6e 74 20 72 65 63 | 74 73 2c 0d 09 20 2a 20 |tent rec|ts,.. * |
|00000550| 73 69 6e 63 65 20 4d 6f | 76 65 57 69 6e 64 6f 77 |since Mo|veWindow|
|00000560| 28 29 20 70 6f 73 69 74 | 69 6f 6e 73 20 74 68 65 |() posit|ions the|
|00000570| 20 63 6f 6e 74 65 6e 74 | 20 72 65 63 74 20 74 6f | content| rect to|
|00000580| 20 74 68 65 20 67 69 76 | 65 6e 20 70 6f 73 69 74 | the giv|en posit|
|00000590| 69 6f 6e 2e 0d 09 20 2a | 2f 0d 09 53 6b 65 6c 47 |ion... *|/..SkelG|
|000005a0| 65 74 57 69 6e 64 43 6f | 6e 74 65 6e 74 52 65 63 |etWindCo|ntentRec|
|000005b0| 74 20 28 77 2c 20 26 63 | 6f 6e 74 65 6e 74 52 65 |t (w, &c|ontentRe|
|000005c0| 63 74 29 3b 0d 09 53 6b | 65 6c 47 65 74 57 69 6e |ct);..Sk|elGetWin|
|000005d0| 64 53 74 72 75 63 74 75 | 72 65 52 65 63 74 20 28 |dStructu|reRect (|
|000005e0| 77 2c 20 26 73 74 72 75 | 63 74 52 65 63 74 29 3b |w, &stru|ctRect);|
|000005f0| 0d 09 68 44 69 66 66 20 | 3d 20 63 6f 6e 74 65 6e |..hDiff |= conten|
|00000600| 74 52 65 63 74 2e 6c 65 | 66 74 20 2d 20 73 74 72 |tRect.le|ft - str|
|00000610| 75 63 74 52 65 63 74 2e | 6c 65 66 74 3b 0d 09 76 |uctRect.|left;..v|
|00000620| 44 69 66 66 20 3d 20 63 | 6f 6e 74 65 6e 74 52 65 |Diff = c|ontentRe|
|00000630| 63 74 2e 74 6f 70 20 2d | 20 73 74 72 75 63 74 52 |ct.top -| structR|
|00000640| 65 63 74 2e 74 6f 70 3b | 0d 09 53 6b 65 6c 50 6f |ect.top;|..SkelPo|
|00000650| 73 69 74 69 6f 6e 52 65 | 63 74 20 28 26 72 65 66 |sitionRe|ct (&ref|
|00000660| 52 65 63 74 2c 20 26 73 | 74 72 75 63 74 52 65 63 |Rect, &s|tructRec|
|00000670| 74 2c 20 68 52 61 74 69 | 6f 2c 20 76 52 61 74 69 |t, hRati|o, vRati|
|00000680| 6f 29 3b 0d 09 4d 6f 76 | 65 57 69 6e 64 6f 77 20 |o);..Mov|eWindow |
|00000690| 28 77 2c 0d 09 09 09 09 | 73 74 72 75 63 74 52 65 |(w,.....|structRe|
|000006a0| 63 74 2e 6c 65 66 74 20 | 2b 20 68 44 69 66 66 2c |ct.left |+ hDiff,|
|000006b0| 0d 09 09 09 09 73 74 72 | 75 63 74 52 65 63 74 2e |.....str|uctRect.|
|000006c0| 74 6f 70 20 2b 20 76 44 | 69 66 66 2c 0d 09 09 09 |top + vD|iff,....|
|000006d0| 09 66 61 6c 73 65 29 3b | 0d 7d 0d 00 00 00 00 00 |.false);|.}......|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 01 00 00 00 02 78 | 00 00 01 78 00 00 00 46 |.......x|...x...F|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 0f 53 6b 65 6c 50 6f 73 | 57 69 6e 64 6f 77 2e 63 |.SkelPos|Window.c|
|00000740| 02 00 00 00 50 61 72 74 | 53 49 54 78 00 00 00 00 |....Part|SITx....|
|00000750| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 a9 9f 75 93 00 00 | 00 00 00 00 02 be 00 00 |....u...|........|
|00000780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 52 00 28 00 1e | 02 21 01 3c 00 18 00 00 |...R.(..|.!.<....|
|00000810| 02 d2 00 00 02 d2 00 00 | 00 00 00 04 00 09 00 00 |........|........|
|00000820| 06 4d 6f 6e 61 63 6f 00 | 00 00 00 00 00 00 00 00 |.Monaco.|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 04 00 00 04 00 00 00 48 | 00 48 00 00 00 00 02 db |.......H|.H......|
|00000870| 02 40 ff e7 ff ee 02 ff | 02 52 1f 03 05 28 03 fc |.@......|.R...(..|
|00000880| 00 01 00 00 01 2c 01 2c | 00 00 00 00 0b e7 09 60 |.....,.,|.......`|
|00000890| 01 2c 00 2d 05 a0 5e ec | 00 26 04 01 01 01 00 18 |.,.-..^.|.&......|
|000008a0| 00 01 27 0f 00 01 00 01 | 00 00 00 00 00 00 00 00 |..'.....|........|
|000008b0| 00 00 00 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 01 00 00 02 41 00 | 00 00 00 04 00 09 00 00 |......A.|........|
|000008e0| 06 4d 6f 6e 61 63 6f 08 | 00 00 00 00 00 00 00 00 |.Monaco.|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000920| 00 04 01 00 00 01 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000950| 00 00 00 00 00 00 00 00 | 00 1e 00 01 00 00 02 d3 |........|........|
|00000960| 00 00 02 e5 13 53 6b 65 | 6c 50 6f 73 69 74 69 6f |.....Ske|lPositio|
|00000970| 6e 57 69 6e 64 6f 77 00 | 00 00 01 00 00 00 02 78 |nWindow.|.......x|
|00000980| 00 00 01 78 00 00 00 46 | 00 3b 9c 74 11 a2 00 00 |...x...F|.;.t....|
|00000990| 00 1c 00 46 00 01 42 42 | 53 52 00 00 00 12 4d 50 |...F..BB|SR....MP|
|000009a0| 53 52 00 00 00 1e 01 03 | ff ff 00 00 00 00 00 00 |SR......|........|
|000009b0| 00 00 03 ef ff ff 00 00 | 01 56 00 00 00 00 00 00 |........|.V......|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+